<template>
  <li class="one_blog">
    <!--<div class="one_blog_img" :style="{'background-image':this.abc}"></div>-->
    <img class="one_blog_img" src="http://blog.php127.com/uploads/pic/201811/5bf354ebbb3ec.png" alt="暂无图片"/>
    <div class="one_blog_content">
      <div class="blog_text">
        <h3 >百合大法好啊百合大法好啊百合大法好啊百合大法好啊百合大法好啊百合大法好啊百合大法好啊</h3>
        <h6>当你做素材网站时,可能遇到psd素材,用户上传发布或者自已发布psd的时候,每次要手动去导出psd效果图或缩略图是不是很麻烦的一件事情然而python也能做到操作psd的强大功能安装psd-tools包使用p</h6>
      </div>
      <div class="blog_label">
        <div class="first_label">
          <a href="#" style="color:skyblue">pthone</a>
          <span>时间:<span>2018-10-10 22:51:33</span></span>
        </div>
        <ul>
          <li><span class="iconfont icon-pinglun1"></span><span>111</span></li>
          <li><span class="iconfont icon-dianzan"></span><span>222</span></li>
          <li><span class="iconfont icon-liulan2"></span><span>333</span></li>
        </ul>
      </div>
    </div>
  </li>
</template>

<script>
  export default {
    name: 'blogitem'
  }
</script>

<style scoped>

  /*----------li 的样式，可以抽取成为一个组件------------*/
  .one_blog{
    width: 100%;
    height: 170px;
    margin-top: 20px;
    list-style: none;
    background-color: orchid;
  }
  .one_blog .one_blog_img{
    float: left;
    width:  25%;
    height: 170px;
    object-fit: cover;

  }
  .one_blog .one_blog_content{
    float: right;
    height: 170px;
    width: 73%;
    margin-left: 2%;
    position: relative;
  }

  .one_blog .one_blog_content h3{
    color: #333;
    font-size: 24px ;
    font-weight: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 10px;
  }
  .one_blog .one_blog_content   .blog_text{
    width: 100%;
    height: 120px;
  }
  .one_blog .one_blog_content h6{
    font-size: 16px;
    font-weight: normal;
    color: #666666;
    text-align: justify;
    margin-top: 5px;
    margin-right: 10px;
  }

  .one_blog .one_blog_content  .blog_label{
    width: 100%;
    float: left;
    height: 45px;
    position: absolute;
    bottom: 0;
    /*margin-bottom: 10px;*/
  }

  .blog_label  ul{
    position: absolute;
    bottom: 0;
    right: 0;
    width: 45%;
  }
  .blog_label  ul li{
    list-style: none;
    float: right;
    margin-left: 10px;
    margin-right: 20px;

  }

  .first_label {
    height: 45px  ;
    width: 45%;
    position: absolute;
    bottom: 0;
    left: 0;

  }
  /*---------end---------------*/
</style>
